package com.api.gbhg.liuwenbo.utils;

import java.text.DecimalFormat;

public class FormatUtil {

    private static DecimalFormat df = new DecimalFormat("#0.00");

    public static String DmFormat(double number){
        if (number >= 0)
            return df.format(number);
        else
            return df.format(0);
    }

}
